﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;

namespace _2112A_2_MES.ChuBoWens
{
    public class MditemDTO: EntityDto<int>
    {
        /// <summary>
        /// 单位ID
        /// </summary>
        public int MeasureId { get; set; }

        /// <summary>
        /// 行ID
        /// </summary>
        public int LineId { get; set; }

        /// <summary>
        /// 生产领料行ID
        /// </summary>
        public int ProLineId { get; set; }

        /// <summary>
        /// 生产产品行ID
        /// </summary>
        public int ProLineId2 { get; set; }

        /// <summary>
        /// 供应商行ID
        /// </summary>
        public int SalLineId { get; set; }

        /// <summary>
        /// 生产行ID
        /// </summary>
        public int ProLineId3 { get; set; }

        /// <summary>
        /// 物料外协行ID2
        /// </summary>
        public int WmLineId { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        [StringLength(100)]
        public string? ItemCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        [StringLength(255)]
        public string? ItemName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        [StringLength(500)]
        public string? Specification { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        [StringLength(64)]
        public string? UnitOfMeasu { get; set; }

        /// <summary>
        /// 物料产品标识
        /// </summary>
        public int ItemOrProductId { get; set; }

        /// <summary>
        /// 物料类型ID
        /// </summary>
        public int ItemTypeId { get; set; }

        /// <summary>
        /// 物料类型编码
        /// </summary>
        [StringLength(64)]
        public string? ItemTypeCode { get; set; }

        /// <summary>
        /// 物料类型名称
        /// </summary>
        [StringLength(255)]
        public string? ItemTypeName { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        [StringLength(1)]
        public string? EnableFlag { get; set; }

        /// <summary>
        /// 安全库存标志
        /// </summary>
        [StringLength(1)]
        public string? SafeStockFlag { get; set; }

        /// <summary>
        /// 最低存货量
        /// </summary>
        public double? MinStock { get; set; }

        /// <summary>
        /// 最高存货量
        /// </summary>
        public double? MaxStock { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(500)]
        public string? Remark { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        [StringLength(64)]
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [StringLength(64)]
        public string? CreateBy { get; set; }

    }
}
